@charset "UTF-8";
@import "headerFooter";

/*section start*/
section {
  position: relative;
  background: #f2f2f2;
  padding-bottom: 20px;
}

/*article start*/
article.banner {
  position: relative;

  .bannerList {
    width: 100%;
    height: 450px;
    display: flex;

    li {
      display: none;
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;

      a {
        display: block;
        width: 770px;
        margin: 0 auto;
      }
    }

    li:nth-child(1) {
      background: rgb(0, 205, 126);
    }

    li:nth-child(2) {
      background: rgb(255, 64, 133);
    }

    li:nth-child(3) {
      background: rgb(246, 46, 46);
    }

    li:nth-child(4) {
      background: rgb(28, 192, 191);
    }
  }

  .btn-banner {
    width: 100%;
    position: absolute;
    z-index: 100;
    bottom: 0;
    left: 0;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;

    li {
      width: 40px;
      height: 6px;
      margin: 4px;
      background: #ffffff;
      opacity: 0.4;
      cursor: pointer;
    }
  }
}

article.banner-news {
  width: 220px;
  position: absolute;
  z-index: 5000;
  background: #ffffff;
  top: 0;
  left: 50%;
  margin-left: 380px;

  .tabAll {
    .tabTitle {
      display: flex;
      width: 200px;
      height: 39px;
      border-top: 1px solid #e8e8e8;
      border-bottom: 1px solid #e8e8e8;
      padding: 0 10px;
      font-size: 14px;
      color: #333333;

      li {
        height: 37px;
        line-height: 38px;
        margin: 0 10px;
        cursor: pointer;
      }

      .current {
        color: #ff6600;
        border-bottom: 3px solid #ff6600;
      }
    }

    .tabContent {
      font-size: 12px;

      li {
        width: 190px;
        height: 150px;
        display: flex;
        color: #333333;
        flex-direction: column;
        padding: 15px;
        justify-content: space-between;
        border-bottom: 1px solid #e8e8e8;
      }

      li:first-child ~ li {
        display: none;
      }
    }
  }

  .quickIcon {
    display: flex;
    width: 220px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    color: #333333;

    li {
      border-width: 0 1px 1px 0;
      border-color: #e8e8e8;
      border-style: solid;

      a {
        display: flex;
        width: 72px;
        height: 75px;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        i {
          font-size: 30px;
          margin-bottom: 6px;
        }
      }
    }

    li:nth-child(3n) {
      border-width: 0 0 1px 0;
    }
  }
}

article.content {
  @include main;
  padding-top: 16px;

  .content-first {
    display: flex;
    justify-content: space-around;

    a {
      display: block;
      overflow: hidden;
      position: relative;
    }

    a:before, a:after {
      transform: skew(20deg, 0deg);
      transition: all 0.5s ease 0s;
      position: absolute;
      content: "";
      width: 70%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.3);
      top: 0;
    }

    a::before {
      left: -82%;
    }

    a::after {
      left: 112%;
    }

    li:hover a::before {
      left: -20%;
    }

    li:hover a::after {
      left: 51%;
    }
  }

  .content-second {
    .goodList {
      display: flex;
      justify-content: space-around;
      color: #333333;
      font-size: 14px;

      li {
        a {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          width: 232px;
          height: 270px;
          background: #ffffff;
          box-sizing: border-box;
          padding: 14px;

          img {
            width: 160px;
            height: 160px;
            margin: 0 auto;
            transition: transform 0.2s ease-in;
          }

          .price {
            color: $orange;
            font-weight: bold;
            font-size: 16px;
          }

          &:hover {
            color: $orange;
          }

          &:hover img {
            transform: translate(-5px, 0);
          }
        }
      }
    }
  }

  .content-third {
    .third-goodList {
      display: flex;
      height: 400px;
      justify-content: space-between;

      .third-left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }

      .third-middle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .goodsDiv {
          @include goodsDiv(570px, 190px);
        }

        .middle-bottom {
          display: flex;
          justify-content: space-between;

          .goodsDiv {
            @include goodsDiv(350px, 160px)
          }

          .goodsDiv:last-child {
            @include goodsDiv(210px, 130px);
          }
        }
      }

      .third-right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .goodsDiv {
          @include goodsDiv(210px, 130px);
        }
      }
    }

  }

  .floor {
    .floor-item {
      .floorNum {
        background: url('../img/index/floorNum.png');
        width: 32px;
        height: 26px;
        margin-right: 8px;
        margin-top: 6px;
      }
    }

    .goodsShow {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .goodsShow-main {
        display: flex;
        justify-content: space-between;

        .goodsShow-left {
          display: flex;
        }

        .goodsShow-middle {
          display: flex;
          flex-direction: column;
          justify-content: space-between;

          .goodsDiv {
            @include goodsDiv(350px, 160px);
            background: #f1fff0;

            &:last-child {
              background: #fff5eb;
            }
          }
        }

        .goodsShow-right {
          width: 430px;
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
          align-content: space-between;

          .goodsDiv {
            @include goodsDiv(210px, 130px);
          }
        }
      }

      .goodsShow-bottom {
        display: flex;
        height: 70px;
        box-sizing: border-box;
        justify-content: space-around;
        align-items: center;
        padding: 15px 0;
        border-bottom: 2px solid #ff6600;
        background: #ffffff;
        margin-top: 10px;

        img {
          width: 80px;
          height: 40px;
        }
      }
    }
  }
}

/*article end*/

/*nav start*/
nav {
  position: fixed;
  width: 40px;
  bottom: 50px;
  left: 50%;
  margin-left: -650px;
  transform-origin: 0 100%;
  background: #666;
  font-size: 12px;
  color: #ffffff;

  a, .nav-title {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 15px;
    box-sizing: border-box;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;

    &:hover {
      background: $orange;
    }
  }

  .nav-title {
    background: $orange;
    line-height: 30px;
  }

  .backTop {
    background: #8a8a8a;
    border: none;
  }
}

/*nav end*/

/*section end*/